﻿using System.Windows.Controls;
using System.ComponentModel.Composition;
using ParaEditor.Infrastructure;
using ParaEditor.Desktop.Interfaces;

namespace ParaEditor.Desktop.View
{
    /// <summary>
    /// LogMgrView.xaml 的交互逻辑
    /// </summary>
    [Export(ViewNames.LogMgrViewName, typeof(UserControl))]
    [PartCreationPolicy(CreationPolicy.Shared)]
    public partial class LogMgrView : UserControl
    {
        public LogMgrView()
        {
            InitializeComponent();
        }

        [Import]
        public ILogMgrViewModel Model
        {
            get
            {
                return DataContext as ILogMgrViewModel;
            }
            set
            {
                this.DataContext = value;
            }
        }
    }
}
